import { createRouter, createWebHistory } from 'vue-router'
import MainLayout from '../layout/MainLayout.vue'
import Home from '../modules/Home.vue'
import About from '../modules/About.vue'
import News from '../modules/News.vue'
import Careers from '../modules/Careers.vue'
import Contact from '../modules/Contact.vue'
import Culture from '../modules/Culture.vue'
import Missions from '../modules/Missions.vue'
import Operation from '../modules/Operation.vue'

const routes = [
  {
    path: '/',
    component: MainLayout,
    children: [
      {
        path: '',
        name: 'home',
        component: Home
      },
      {
        path: 'home',
        redirect: '/'
      },
      {
        path: 'about',
        name: 'about',
        component: About
      },
      {
        path: 'news',
        name: 'news',
        component: News
      },
      {
        path: 'careers',
        name: 'careers',
        component: Careers
      },
      {
      path: 'missions',
      name: 'missions',
      component: Missions
      },
      {
        path: 'operation',
        name: 'operation',
        component: Operation
      },
      {
        path: 'culture',
        name: 'culture',
        component: Culture
      },
      {
        path: 'contact',
        name: 'contact',
        component: Contact
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 